package org.example.exception;


/**
 * 自定义REST异常类
 */
public class RestException extends Exception {

    private String code;

    public RestException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }
}